GBML manual / Rooms

region_music

The song of the region the player is in: the one you picked for it in the Regions list, or the one region_set_music gave it. Nothing when the region has no song.

Syntax

region_music() -> song

Returns

song

Description

The song of the region the player is in: the one you picked for it in the Regions list, or the one region_set_music gave it. Nothing when the region has no song. In a house it is the song of the last region the player was in.

Example

if (region_music() != music_current()) {
    music_fade_to(region_music(), true, 1);
}

Puts the region's song back if some other song is playing.

See also: region_set_musicmusic_currentWhat a region does in the game